package com.wdc.deliveryrobot.Sp;

import android.content.Context;
import android.content.SharedPreferences;

import com.google.gson.Gson;

public class SPManager {

    private static final String TAG = "SPManager";

    //点位数据
    private static final String POINT_SPF = "point_spf";
    private static final String POINT_SUM = "point_sum";

    private static SharedPreferences getPointSpf(Context context){
        return context.getSharedPreferences(POINT_SPF, Context.MODE_PRIVATE);
    }
    public static void savePoint(Context context,String date){
        SharedPreferences.Editor editor = context.getSharedPreferences(POINT_SPF, Context.MODE_PRIVATE).edit();
        editor.putString(POINT_SUM,date);
        editor.commit();
    }

    public static String getPoint(Context context){
        return getPointSpf(context).getString(POINT_SUM, null);
    }

}
